<?php
/**
 * Created by PhpStorm.
 * User: WormW
 * Date: 2017/7/17 0017
 * Time: 9:05
 */

namespace app\common\validate;

use think\Validate;

class Company extends Validate
{
    protected $rule=[
        'company_name'=>'require',
        'company_number'=>'require',
//        'captcha|验证码'=>'require|captcha'
    ];
    protected $message=[
        'company_name'=>'必须填写企业名',
        'company_number'=>'必须填写企业编号',
//        'captcha|验证码'=>'验证码错误'
    ];
    protected $scene=[
      'sign-up'=>['company_name','company_number'],
        'edit'=>['company_name','company_number'],
    ];
}